﻿
using Core.Domain.ValueObjects;

namespace Core.Identity.Users.Dtos;

/// <summary>
/// 用户详情
/// </summary>
public class UserDetail
{
    /// <summary>
    /// 用户唯一标识
    /// </summary>
    public Guid Id { get; set; }
    /// <summary>
    /// 用户名
    /// </summary>
    public string? Username { get; set; }
    public string? Nickname { get; set; }
    /// <summary>
    /// 邮箱
    /// </summary>
    public string? Email { get; set; }
    /// <summary>
    /// 头像
    /// </summary>
    public Avatar? Avatar { get; set; }
    /// <summary>
    /// 手机号码
    /// </summary>
    public PhoneNumber? PhoneNumber { get; set; }
    /// <summary>
    /// 是否锁定
    /// </summary>
    public UserLockout? Lockout { get; set; }
    /// <summary>
    /// 角色
    /// </summary>
    public List<string>? Roles { get; set; } = new();
    /// <summary>
    /// 权限
    /// </summary>
    public List<string>? Permissions { get; set; } = new();
}
